package com.ly.cloud.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.ly.cloud.dto.DepartmentDto;
import com.ly.cloud.entity.DepartmentPo;
import com.ly.cloud.vo.DepartmentVo;
import com.ly.cloud.vo.DeptTypeSelectVo;
import com.ly.cloud.vo.TeachDepVo;

import java.util.List;
import java.util.Map;

/**
 * @Author: pengshiqng
 * @Description:
 * @Date: Create in 2018/12/12
 */
public interface DepartmentService {

    Page<DepartmentVo> selectPage(Page<DepartmentVo> page, String id , DepartmentDto dto);

    int deleteById(String id) ;

    int deleteByIds(List<String> ids) ;

    int insert(String loginUserName , DepartmentDto dto);

    int update(String loginUserName ,DepartmentDto dto) ;

    List<TeachDepVo> findAllDepartment(String id);

    /**
     * 查询教学机构（院系下拉）
     * @return
     */
	List<TeachDepVo> findTeachDep();


    //查询所有单位类别(下拉通用)
    List<DeptTypeSelectVo> findDepType();

    //新增部门时，查询部门编号是否存在
    Boolean checkedDepID(String depId);

    
}
